<?php
/**
 * App en Language Map
 *
 * @author Zeon <scplay@gmail.com>
 * @date 2018/6/4
 * @copyright PanxSoft Inc.
 */

use App\Services\Presenters\HmSkinData;

return [
    /**
     * @used-by DeviceAccountController
     */
    'device_account_error'      => 'device account error',
    'token_generate_fail'       => 'token generate fail',
    'customer_error'            => 'customer error',
    'store_error'               => 'store error',
    'store_and_customer_status' => 'device account customer or store access forbidden',
    'store_disabled'            => 'device account store disabled！',
    'customer_disabled'         => 'device account customer disabled！',
    'device_account_status'     => 'device account access forbidden',
    'device_account_uuid'       => 'device uuid bound, cannot login other account',
    'invalid_token'             => 'Invalid account login token',
    'password_error'            => 'Invalid account password',

    /**
     * @used-by \App\Http\Controllers\App\ProductController
     */
    'category_error' => 'category error',
    'product_error'  => 'product error',
    'spu_code'       => 'spu code',
    'remark_error'   => 'unknown error',
    'brand_series_other'   => 'other',

    /**
     * @used-by \App\Http\Controllers\App\SkinRecordController
     */
    'skin_detector_type_error' => 'invalid skin detector type error',
    'wechat_user_not_found'    => 'wechat user not found！',

    /**
     * @used-by \App\Http\Controllers\App\WechatUserController
     */
    'wechat_user_error'           => 'Wechat user',
    'scan_event_error'            => 'Scan event',
    'authorizer_error'            => 'Official Account',
    'check_can_operate'           => 'User scan error',
    'custom_value_template_error' => 'Fail to save Official Account template ID！',
    'template_first'              => 'Hi: :user，skin detecting',
    'template_keyword1'           => 'Skin Detection Data',
    'template_keyword2'           => 'Waiting',
    'template_remark'             => 'Your Skin Data',

    /**
     * @used-by \App\Http\Middleware\AppAuth
     */
    'duplicate_login'   => 'Device Account login on other place',
    'password_modified' => 'Device Account password changed',

    'locale_language' => 'en',    // 中文常量信息，英文是en

    /**
     * @used-by \App\Services\Presenters\HmSkinData
     */
    HmSkinData::WATER_LABEL_60 => 'invalid data',
    HmSkinData::WATER_LABEL_50 => 'cosmetic affect',
    HmSkinData::WATER_LABEL_40 => 'good',
    HmSkinData::WATER_LABEL_30 => 'water deficiency',
    HmSkinData::WATER_LABEL_10 => 'dry skin',
    HmSkinData::WATER_LABEL_5  => 'not skin',

    HmSkinData::OIL_LABEL_30 => 'invalid data',
    HmSkinData::OIL_LABEL_25 => 'cosmetic affect',
    HmSkinData::OIL_LABEL_18 => 'good',
    HmSkinData::OIL_LABEL_15 => 'oil deficiency',
    HmSkinData::OIL_LABEL_10 => 'malnutrition',
    HmSkinData::OIL_LABEL_5  => 'not skin',

    HmSkinData::FLEX_LABEL_8 => 'hard',
    HmSkinData::FLEX_LABEL_6 => 'tough',
    HmSkinData::FLEX_LABEL_4 => 'good',
    HmSkinData::FLEX_LABEL_3 => 'soft',
    HmSkinData::FLEX_LABEL_1 => 'slack',

    /**
     * @used-by \App\Http\Controllers\App\PackController::assembleOtherPackCategory()
     */
    'other' => 'other',

    /**
     * 微信开放平台相关
     */
    "open_wechat" => [
        /**
         *  @used-by \App\Http\Controllers\App\WechatUserController::loginQrCode()
         */
        'authorizer_is_not_type_service' => 'official account must be type service'
    ],

    /**
     * @used-by \App\Http\Controllers\App\StaffController::store()
     * @used-by \App\Http\Controllers\App\StaffController::update()
     */
    'wechat_user_has_been_bound_store_admin' => 'WeChat has been bound to the staff, please unbind first',

    /**
     * @used-by \App\Http\Controllers\App\WechatUserFavorsController
     */
    'scavenging_state' => 'Scavenging success',
 ];
